package com.tkx.dxb.service.article.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.tkx.dxb.service.base.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author victor
 * @since 2021-04-07
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("article_post")
@ApiModel(value="Post对象", description="")
public class Post extends BaseEntity {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "文章标题")
    private String title;

    @ApiModelProperty(value = "文章描述")
    private String titleDes;

    @ApiModelProperty(value = "文章图片链接")
    private String picture;

    @ApiModelProperty(value = "逻辑删除 1（true）已删除， 0（false）未删除")
    @TableField("is_deleted")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "评论数")
    private Integer titleComment;

    @ApiModelProperty(value = "是否点赞")
    private Integer likeFlag;

    @ApiModelProperty(value = "点赞数")
    private Integer titleLike;

    @ApiModelProperty(value = "阅读数")
    private Integer titleRead;

    @ApiModelProperty(value = "文章内容")
    private String content;


}
